﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS
{
    [DataContract, Table("message_send")]
    public class MessageSend
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Column("send_seq", Order = 1)]
        public int SendId { get; set; }

        [DataMember, Column("send_date", Order = 2)]
        public DateTime SendDate { get; set; }

        [DataMember, Column("ref_seq", Order = 3)]
        public int? RefId { get; set; }

        [DataMember, Column("ref_type", Order = 4)]
        public string RefType { get; set; }

        [DataMember, Column("ref_no", Order = 5)]
        public string RefNo { get; set; }

        [DataMember, Column("send_text", Order = 6)]
        public string SendText { get; set; }

        [DataMember, Column("from_emp_seq", Order = 7)]
        public int? FromEmpId { get; set; }

        [DataMember, Column("from_pos_seq", Order = 8)]
        public int? FromPosId { get; set; }

        [DataMember, Column("to_emp_seq", Order = 9)]
        public int? ToEmpId { get; set; }

        [DataMember, Column("to_pos_seq", Order = 10)]
        public int? ToPosId { get; set; }
        [DataMember, Column("wod_emp_seq", Order = 11)]
        public int? WodEmpId { get; set; }

        [DataMember, Column("from_send_seq", Order = 12)]
        public int? FromSendId { get; set; }

        [DataMember, Column("remarks", Order = 13)]
        public string Remarks { get; set; }

        [DataMember, Column("approve_path_seq", Order = 14)]
        public int? ApprovePathId { get; set; }

        [DataMember, Column("message_status", Order = 15)]
        public string MessageStatus { get; set; }

        [DataMember, Column("is_warn", Order = 16)]
        public bool IsWarn { get; set; }

        [DataMember, Column("record_status", Order = 17)]
        public string RecordStatus { get; set; }

        [DataMember, Column("created_by", Order = 18)]
        public int? CreatedBy { get; set; }

        [DataMember, Column("created_when", Order = 19)]
        public DateTime? CreatedWhen { get; set; }

        [DataMember, Column("updated_by", Order = 20)]
        public int? UpdatedBy { get; set; }

        [DataMember, Column("updated_when", Order = 21)]
        public DateTime? UpdatedWhen { get; set; }
    }
}


//[DataContract, Table("MessageSend")]
//public class MessageSend
//{
//    [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
//    [DataMember]
//    public int SendId { get; set; }

//    [DataMember]
//    public DateTime SendDate { get; set; }

//    [DataMember]
//    public int? RefId { get; set; }

//    [DataMember]
//    public string RefType { get; set; }

//    [DataMember]
//    public string RefNo { get; set; }

//    [DataMember]
//    public string SendText { get; set; }

//    [DataMember]
//    public int? FromEmpId { get; set; }

//    [DataMember]
//    public int? ToEmpId { get; set; }

//    [DataMember]
//    public int? FromSendId { get; set; }

//    [DataMember]
//    public string Remarks { get; set; }

//    [DataMember]
//    public string MessageStatus { get; set; }

//    [DataMember]
//    public string RecordStatus { get; set; }

//    [DataMember]
//    public int? CreatedBy { get; set; }

//    [DataMember]
//    public DateTime? CreatedWhen { get; set; }

//    [DataMember]
//    public int? UpdatedBy { get; set; }

//    [DataMember]
//    public DateTime? UpdatedWhen { get; set; }

//}